const ApiRootUrl = "https://yeziji.xyz/minisupermarket/";
// const JavaRootUrl = "https://java.yeziji.xyz/";
// const JavaRootUrl = 'https://yeziji.xyz/minisupermarket/';
const JavaRootUrl = 'http://127.0.0.1:7000/';

const PayRootUrl = "https://java.yeziji.xyz/";

module.exports = {
  // 登录
  AuthLoginByWeixin: JavaRootUrl + "auth/loginByWeixin", //微信登录 -- j // 首页
  IndexUrl: JavaRootUrl + "index/appInfo", //首页数据接口 -- j // 分类
  CatalogList: JavaRootUrl + "catalog/index", //分类目录全部分类数据接口 -- j
  CatalogCurrent: JavaRootUrl + "catalog/current", //分类目录当前分类数据接口 -- j
  GetCurrentList: JavaRootUrl + "catalog/currentlist", // 分类列表  -- j // 购物车
  GetHomeList: JavaRootUrl + "catalog/homeList", // 首页分类
  CartAdd: JavaRootUrl + "cart/add", // 添加商品到购物车 -- j
  CartList: JavaRootUrl + "cart/index", //获取购物车的数据 -- j
  CartUpdate: JavaRootUrl + "cart/update", // 更新购物车的商品 -- j
  CartDelete: JavaRootUrl + "cart/delete", // 删除购物车的商品
  CartChecked: JavaRootUrl + "cart/checked", // 选择或取消选择商品
  CartGoodsCount: JavaRootUrl + "cart/goodsCount", // 获取购物车商品件数 --j
  CartCheckout: JavaRootUrl + "cart/checkout", // 下单前信息确认 // 商品
  GoodsCount: JavaRootUrl + "goods/count", //统计商品总数 -- j
  GoodsDetail: JavaRootUrl + "goods/detail", //获得商品的详情 -- j
  GoodsList: JavaRootUrl + "goods/list", //获得商品列表 -- j
  GoodsShare: ApiRootUrl + "goods/goodsShare", //获得商品的详情
  SaveUserId: ApiRootUrl + "goods/saveUserId", // 收货地址
  AddressDetail: ApiRootUrl + "address/addressDetail", //收货地址详情
  DeleteAddress: ApiRootUrl + "address/deleteAddress", //保存收货地址
  SaveAddress: ApiRootUrl + "address/saveAddress", //保存收货地址
  GetAddresses: ApiRootUrl + "address/getAddresses",
  RegionList: ApiRootUrl + "region/list", //获取区域列表
  PayPrepayId: JavaRootUrl + "marketing/js", //获取微信统一下单prepay_id
  OrderSubmit: JavaRootUrl + "order/submitOrder", // 提交订单
  OrderList: JavaRootUrl + "order/list", //订单列表
  OrderDetail: JavaRootUrl + "order/detail", //订单详情
  OrderDelete: JavaRootUrl + "order/delete", //订单删除
  OrderCancel: JavaRootUrl + "order/cancel", //取消订单
  OrderConfirm: ApiRootUrl + "order/confirm", //物流详情
  OrderCount: ApiRootUrl + "order/count", // 获取订单数 // 没发现用到
  OrderCountInfo: JavaRootUrl + "order/orderCount", // 我的页面获取订单数状态
  OrderExpressInfo: JavaRootUrl + "order/express", //物流信息
  OrderGoods: JavaRootUrl + "order/orderGoods", // 获取checkout页面的商品列表 // 足迹
  FootprintList: JavaRootUrl + "footprint/list", //足迹列表
  FootprintDelete: JavaRootUrl + "footprint/delete", //删除足迹 // 搜索
  SearchIndex: JavaRootUrl + "search/index", //搜索页面数据 -- j
  SearchHelper: ApiRootUrl + "search/helper", //搜索帮助
  SearchClearHistory: ApiRootUrl + "search/clearHistory", //搜索帮助
  ShowSettings: JavaRootUrl + "settings/showSettings", // 显示设置 -- j
  SaveSettings: ApiRootUrl + "settings/save",
  SettingsDetail: JavaRootUrl + "settings/userDetail",
  GetBase64: ApiRootUrl + "qrcode/getBase64", //获取商品详情二维码

  //充值
  Recharge: JavaRootUrl + "order/submitOrder/balance", //充值
};
